package com.dianping.cat.core.dal;

import java.util.Date;
import org.unidal.dal.jdbc.AbstractDao;
import org.unidal.dal.jdbc.DalException;
import org.unidal.dal.jdbc.Readset;
import org.unidal.dal.jdbc.Updateset;

public class MonthlyReportDao extends AbstractDao {
/* 10 */   public MonthlyReport createLocal() { return new MonthlyReport(); }




  
  public int deleteByPK(MonthlyReport proto) throws DalException { return getQueryEngine().deleteSingle(MonthlyReportEntity.DELETE_BY_PK, proto); }




  
  public int deleteReportByDomainNamePeriod(MonthlyReport proto) throws DalException { return getQueryEngine().deleteSingle(MonthlyReportEntity.DELETE_REPORT_BY_DOMAIN_NAME_PERIOD, proto); }



  
  public MonthlyReport findByPK(int keyId, Readset<MonthlyReport> readset) throws DalException {
/* 28 */     MonthlyReport proto = new MonthlyReport();

/* 30 */     proto.setKeyId(keyId);

/* 32 */     return (MonthlyReport)getQueryEngine().querySingle(MonthlyReportEntity.FIND_BY_PK, proto, readset);
  }





  
  public MonthlyReport findReportByDomainNamePeriod(Date period, String domain, String name, Readset<MonthlyReport> readset) throws DalException {
/* 41 */     MonthlyReport proto = new MonthlyReport();

/* 43 */     proto.setPeriod(period);
/* 44 */     proto.setDomain(domain);
/* 45 */     proto.setName(name);

/* 47 */     return (MonthlyReport)getQueryEngine().querySingle(MonthlyReportEntity.FIND_REPORT_BY_DOMAIN_NAME_PERIOD, proto, readset);
  }







  
/* 57 */   protected Class<?>[] getEntityClasses() { return new Class[] { MonthlyReportEntity.class }; }



/* 61 */   public int insert(MonthlyReport proto) throws DalException { return getQueryEngine().insertSingle(MonthlyReportEntity.INSERT, proto); }





/* 67 */   public int updateByPK(MonthlyReport proto, Updateset<MonthlyReport> updateset) throws DalException { return getQueryEngine().updateSingle(MonthlyReportEntity.UPDATE_BY_PK, proto, updateset); }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/core/dal/MonthlyReportDao.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */